﻿<Dialog:AbstractWPFDialogControl x:Class="SQLDeployAnything.Data.UI.NewConnectionPrompt.ConnectionTypeSelector"
                  xmlns:Dialog="clr-namespace:WPFHelper.Dialog2;assembly=WPFHelper"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:connections="clr-namespace:SQLDeployAnything.Data.Environment"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Dialog:AbstractWPFDialogControl.Resources>
        <ObjectDataProvider x:Key="ConnectionTypes"
                            ObjectType="{x:Type connections:Connection}"
                            MethodName="AvailableConnectionTypes"/>
    </Dialog:AbstractWPFDialogControl.Resources>
    <Grid Margin="4">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Label Grid.Row="0" 
            Content="Select Connection Type:"/>
        <ComboBox Grid.Row="1" 
                  Name="cmb_SelectedType"
                  ItemsSource="{Binding Source={StaticResource ConnectionTypes}}"
                  DisplayMemberPath="Name"
                  
                  />
    </Grid>
 
    
</Dialog:AbstractWPFDialogControl>
